home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / Install / program files / Borland / BDS / 3.0 / Demos / Delphi.Net / CLR / TrayIconApp / ReadMe.txt < prev    next >
Encoding:
Text File  |  2004-10-22  |  918 b   |  32 lines

  1. MOUSE BUTTON SWAPPER
  2.  
  3. A Borland Delphi Demo for Microsoft .NET Framework
  4.  
  5. Written by Rick Beerendonk (rick@beerendonk.com)
  6.            The Netherlands
  7.  
  8. --------------------------------------------------
  9.  
  10. SUMMARY
  11.  
  12. This demo is a tray-icon application. By 
  13. double-clicking the tray-icon the main mouse 
  14. buttons swap. Easy if left-handed and right-handed 
  15. need to work on the same machine. The icon also 
  16. has a popup-menu where swapping is option.
  17.  
  18.  
  19. USED "TRICKS"
  20.  
  21. To hide the mainform set the WindowState to 
  22. Minimized and the ShowInTaskbar property to False.
  23.  
  24. To know when mouse buttons are being swapped use 
  25. the Microsoft.Win32.SystemEvents
  26.  
  27. The code to create icons from bitmaps (in the demo 
  28. stored in an ImageList) is actually a workaround 
  29. because there is a .NET bug when saving a bitmap 
  30. to an ImageFormat.Icon
  31. (see http://support.microsoft.com/default.aspx?scid=kb;en-us;q316563)
  32.